'' Installer's configuration information .INI file
INIPRESENT% = CheckForIni
'' MCBPRESENT% = CheckForMcb
INSUFFPROC:
IF GetProcessorType() < 3 THEN
i% = DoMsgBox("CookWorks requires a 386 or higher processor to operate.","Setup Error!",MB_TASKMODAL+MB_ICONHAND+MB_OK)
GOTO QUIT
END IF
INSUFFWINVER: '' Check for sufficient revision of Windows.
IF GetWindowsMajorVersion() < 3 OR (GetWindowsMajorVersion() = 3 AND GetWindowsMinorVersion() < 1) THEN
i% = DoMsgBox("CookWorks requires Windows 3.1 or later to operate.","Setup Error!",MB_TASKMODAL+MB_ICONHAND+MB_OK)
GOTO QUIT
END IF
NOMOUSE: '' Check for presence of mouse (not required, but recommended)
IF HasMouseInstalled() = 0 THEN
i% = DoMsgBox("Setup did not detect the presence of a mouse. Although it is not required, a mouse is recommended for using Cook Works.","Setup Warning",MB_TASKMODAL+MB_ICONINFORMATION+MB_OK)
END IF
OPTCUR$ = "1"
DEST$ = "C:\COOKWRKS"
'$IFDEF DEBUG
i% = SetSizeCheckMode(scmOnIgnore) '' could use scmOff; def = scmOnFatal
WinDrive$ = MID$(GetWindowsDir, 1, 1)
IF IsDriveValid(WinDrive$) = 0 THEN
i% = DoMsgBox("Windows drive ('"+WinDrive$+"') is not a valid drive.", "DEBUG", MB_TASKMODAL+MB_ICONHAND+MB_OK)